package com.panda.entity.vo;


import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("文章详情")
public class VideoVo {
    private Long id;
    @NotEmpty(message = "标题不能为空")
    private String title;
    private String detail;
    //视频分类
    @NotNull(message = "分区不能为空")
    private Integer categoryId;
    //访问量
    private Long views;
    //点赞数
    private Long likes;
    //视频链接
    private String videoUrl;
    //视频时长
    private Double duration;
    //视频文件大小
    private Double videoSize;
    //封面
    private String cover;
    //是否原创
    @NotEmpty(message = "版权信息不能为空")
    private String copyright;
    // 创作者(需要联表获得)
    private String username;
    // 创作时间
    private Date createTime;
}
